<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.*" %>
<html>
<head>
	<title>Update Personal Information</title>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/device.css"/>
</head>
<body>
<%
	String username = (String) session.getAttribute("username");
	if (username != null) {
%>
<h2>修改个人信息</h2>
<form action="<%=request.getContextPath() %>/update.do" method="post">
	用户名：<input type="text" name="user_id" required><br>
	密码：<input type="password" name="password" required><br>
	电子邮件：<input type="email" name="email" required><br>
	出生日期：<input type="date" name="birth" required><br>
	电话号码：<input type="tel" name="phone" required><br>
	地址：<input type="text" name="address" required><br>
	<input type="submit" value="更新个人信息">
</form>
<%
} else {
%>
<p>请先登录！</p>
<%
	}
%>
</body>
</html>
